<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the acceptApplication method from the EMGroupManager class, for the Dart programming language.">
  <title>acceptApplication method - EMGroupManager class - im_flutter_sdk library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="../..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">im_flutter_sdk</a></li>
    <li><a href="im_flutter_sdk/im_flutter_sdk-library.html">im_flutter_sdk</a></li>
    <li><a href="im_flutter_sdk/EMGroupManager-class.html">EMGroupManager</a></li>
    <li class="self-crumb">acceptApplication method</li>
  </ol>
  <div class="self-name">acceptApplication</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5>EMGroupManager class</h5>
    <ol>
    
      <li class="section-title inherited">
        <a href="im_flutter_sdk/EMGroupManager-class.html#instance-properties">Properties</a>
      </li>
      <li class="inherited"><a href="im_flutter_sdk/EMGroupManager/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMGroupManager/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="im_flutter_sdk/EMGroupManager-class.html#instance-methods">Methods</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/acceptApplication.html">acceptApplication</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/acceptInvitation.html">acceptInvitation</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/addGroupAdmin.html">addGroupAdmin</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/addUsersToGroup.html">addUsersToGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/applyJoinToGroup.html">applyJoinToGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/blockGroupMessage.html">blockGroupMessage</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/blockUser.html">blockUser</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/changeGroupDescription.html">changeGroupDescription</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/changeGroupName.html">changeGroupName</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/changeOwner.html">changeOwner</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/createGroup.html">createGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/declineApplication.html">declineApplication</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/declineInvitation.html">declineInvitation</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/deleteGroupSharedFile.html">deleteGroupSharedFile</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/destroyGroup.html">destroyGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/downloadGroupSharedFile.html">downloadGroupSharedFile</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/fetchGroupAnnouncement.html">fetchGroupAnnouncement</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/fetchGroupBlackList.html">fetchGroupBlackList</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/fetchGroupMembers.html">fetchGroupMembers</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/fetchGroupMuteList.html">fetchGroupMuteList</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/fetchGroupSharedFileList.html">fetchGroupSharedFileList</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/getAllGroups.html">getAllGroups</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/getGroup.html">getGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/getGroupFromServer.html">getGroupFromServer</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/getJoinedGroupsFromServer.html">getJoinedGroupsFromServer</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/getPublicGroupsFromServer.html">getPublicGroupsFromServer</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/inviteUser.html">inviteUser</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/joinGroup.html">joinGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/leaveGroup.html">leaveGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/loadAllGroups.html">loadAllGroups</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/muteGroupMembers.html">muteGroupMembers</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/removeGroupAdmin.html">removeGroupAdmin</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/removeUserFromGroup.html">removeUserFromGroup</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/unblockGroupMessage.html">unblockGroupMessage</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/unblockUser.html">unblockUser</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/unMuteGroupMembers.html">unMuteGroupMembers</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/updateGroupAnnouncement.html">updateGroupAnnouncement</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/updateGroupExtension.html">updateGroupExtension</a></li>
      <li><a href="im_flutter_sdk/EMGroupManager/uploadGroupSharedFile.html">uploadGroupSharedFile</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMGroupManager/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMGroupManager/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="im_flutter_sdk/EMGroupManager-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="im_flutter_sdk/EMGroupManager/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">
    <h1>acceptApplication method</h1>

    <section class="multi-line-signature">
      <span class="returntype">void</span>
      <span class="name ">acceptApplication</span>
(<wbr>{<span class="parameter" id="acceptApplication-param-userName"><span class="type-annotation">String</span> <span class="parameter-name">userName</span>, </span> <span class="parameter" id="acceptApplication-param-groupId"><span class="type-annotation">String</span> <span class="parameter-name">groupId</span>, </span> <span class="parameter" id="acceptApplication-param-onSuccess"><span class="type-annotation">dynamic</span> <span class="parameter-name">onSuccess</span>(), </span> <span class="parameter" id="acceptApplication-param-onError"><span class="type-annotation">dynamic</span> <span class="parameter-name">onError</span>(<span class="parameter" id="onError-param-errorCode"><span class="type-annotation">int</span> <span class="parameter-name">errorCode</span>, </span> <span class="parameter" id="onError-param-desc"><span class="type-annotation">String</span> <span class="parameter-name">desc</span></span>)</span> })
      
    </section>
    <section class="desc markdown">
      <p>同意加群申请</p>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span> </h2>
      <pre class="language-dart"><code class="language-dart">void acceptApplication({
  final String userName,
  final String groupId,
  onSuccess(),
  onError(int errorCode, String desc)}){
  Future&lt;Map&lt;String, dynamic&gt;&gt; result = _emGroupManagerChannel
      .invokeMethod(EMSDKMethod.acceptApplication, {&quot;userName&quot; : userName, &quot;groupId&quot; : groupId});
  result.then((response){
    if (response[&#39;success&#39;]) {
      if (onSuccess != null) {
        onSuccess();
      }
    } else {
      if (onError != null) onError(response[&#39;code&#39;], response[&#39;desc&#39;]);
    }
  });
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    im_flutter_sdk 1.0.0
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
